﻿@model CJCMS.Contracts.DTO.RegisterDTO

@{
    ViewBag.Title = "注册";
}

<h2>创建新帐户</h2>
<p>
    使用以下表单创建新帐户。 
</p>
<p>
    
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "帐户创建不成功。请更正错误并重试。")
    <div>
        <fieldset>
            <legend>帐户信息</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.Name)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Name)
                @Html.ValidationMessageFor(m => m.Name)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.PlantPwd)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.PlantPwd)
                @Html.ValidationMessageFor(m => m.PlantPwd)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.PlantPwd)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.PlantPwd)
                @Html.ValidationMessageFor(m => m.PlantPwd)
            </div>

            <p>
                <input type="submit" value="注册" />
            </p>
        </fieldset>
    </div>
}
